package com.zhangxu.microservice.auth.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 员工角色关系响应
 */
@Data
@Schema(description = "员工角色关系响应")
public class EmployeeRoleResp {

    /**
     * 主键 ID
     */
    @Schema(description = "主键ID", example = "1")
    private Long id;

    /**
     * 员工 ID
     */
    @Schema(description = "员工ID", example = "1")
    private Long employeeId;

    /**
     * 员工姓名
     */
    @Schema(description = "员工姓名", example = "张三")
    private String employeeName;

    /**
     * 角色 ID
     */
    @Schema(description = "角色ID", example = "1")
    private Long roleId;

    @Schema(description = "角色名称", example = "管理员")
    private String roleName;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2023-01-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间", example = "2023-01-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime updateTime;
}